package com.yupi.yuoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName collections
 */
@TableName(value ="collections")
@Data
public class Collections {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long user_id;

    /**
     * 目标类型: 1文章 2沸点
     */
    private Integer target_type;

    /**
     * 目标ID
     */
    private Long target_id;

    /**
     * 收藏夹ID
     */
    private Long folder_id;

    /**
     * 
     */
    private Date created_at;

    // 手动添加getter方法以解决编译问题
    public Long getId() {
        return id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public Integer getTarget_type() {
        return target_type;
    }

    public Long getTarget_id() {
        return target_id;
    }

    public Long getFolder_id() {
        return folder_id;
    }

    public Date getCreated_at() {
        return created_at;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public void setTarget_type(Integer target_type) {
        this.target_type = target_type;
    }

    public void setTarget_id(Long target_id) {
        this.target_id = target_id;
    }

    public void setFolder_id(Long folder_id) {
        this.folder_id = folder_id;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }
}